﻿using ESRI.ArcGIS.Display;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DGIS.Service.IService.IRenderService
{
    public interface ISymbolService
    {
        /// <summary>
        /// 创建图片渲染
        /// </summary>
        /// <param name="imgPath"></param>
        /// <param name="size"></param>
        /// <returns></returns>
        ISymbol CreatePictureMarkerSymbol(string imgPath, int size);

        /// <summary>
        /// 创建线渲染
        /// </summary>
        /// <param name="lineColor"></param>
        /// <param name="width"></param>
        /// <returns></returns>
        ISymbol CreateSimpleLinelSymbol(IRgbColor lineColor, int width);

        /// <summary>
        /// 创建面渲染
        /// </summary>
        /// <param name="fillColor">填充色</param>
        /// <param name="lineSymbol">边框样式</param>
        /// <returns></returns>
        ISymbol CreateSimpleFillSymbol(IRgbColor fillColor, ISimpleLineSymbol lineSymbol);

        /// <summary>
        /// 获取符号库文件中样式
        /// </summary>
        /// <param name="stylePath">符号库文件位置</param>
        /// <param name="className">类型名称</param>
        /// <param name="symbolName">样式名称</param>
        /// <returns></returns>
        ISymbol GetSymbolFromStyleFile(string stylePath, string className, string symbolName);
    }
}
